class_name GameStateScored
extends GameState

const DURACTION_CELEBRATION := 3000

var time_since_celebrate := Time.get_ticks_msec()

func _enter_tree() -> void:
	
	manager.increase_score(state_data.country_scored_on)
	time_since_celebrate = Time.get_ticks_msec()
	
func _process(delta: float) -> void:
	if Time.get_ticks_msec() - time_since_celebrate > DURACTION_CELEBRATION:
		transaction_state(GameManager.State.RESET,state_data)
